/*
 * activitynew.cpp
 *
 *  Created on: Jul 22, 2010
 *      Author: nintang
 */
#include "activitynew.h"

activitynew::activitynew(QWidget *parent)
    : QWidget(parent)
{
	//setWindowFlags(Qt::WindowSoftkeysVisibleHint);
	this->setStyleSheet("QLineEdit,QTextEdit{color:black;font:20px; border-radius: 4px; border-width: 1px; border-style: solid; border-color: rgb(150,165,165); background-color: rgba(224, 250, 255, 75%); }"  
			"QLabel{color: black; font: bold 18px ;}"
	        "QCheckBox::indicator:unchecked{width: 23px;height: 23px; image: url(:/images/4.png);}"
			"QCheckBox::indicator:checked {image: url(:/images/5.png);}");
	QLabel *labelActivityNew=new QLabel(this);
	labelActivityNew->setGeometry(QRect(0,0, 360, 54));
	labelActivityNew->setStyleSheet("background-image: url(:/images/2.png);");	
	QWidget *widget=new QWidget(this);
	widget->setGeometry(QRect(0,54, 360, 526));
	widget->setStyleSheet("background-color:white; ");
	QLabel *labelName=new QLabel(QApplication::translate("activitynew", "\345\220\215\347\247\260\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelName->setGeometry(QRect(15,80, 60, 30));
	QLabel *labelTime=new QLabel(QApplication::translate("activitynew", "\346\227\266\351\227\264\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelTime->setGeometry(QRect(15,125, 60, 30));
	QLabel *labelPlace=new QLabel(QApplication::translate("activitynew", "\345\234\260\347\202\271\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelPlace->setGeometry(QRect(15,170, 60, 30));
	QLineEdit *lineEditName = new QLineEdit(this);
	lineEditName->setGeometry(QRect(75, 75, 250, 35));
	QLineEdit *lineEditTime = new QLineEdit(this);
	lineEditTime->setGeometry(QRect(75, 120, 250, 35));
	QLineEdit *lineEditPlace = new QLineEdit(this);
	lineEditPlace->setGeometry(QRect(75, 165, 250, 35));
	QLabel *labelContent=new QLabel(QApplication::translate("activitynew", "\345\206\205\345\256\271\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelContent->setGeometry(QRect(15,220, 100, 30));	
	QTextEdit *textEdit = new QTextEdit(this);
    textEdit->setGeometry(QRect(30, 250, 300, 200));
    textEdit->setFrameShadow(QFrame::Plain);
    textEdit->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
	QPushButton *pushButton=new QPushButton(this);
	pushButton->setFocusPolicy(Qt::NoFocus);
	pushButton->setGeometry(QRect(230,475, 102, 48));	
	pushButton->setStyleSheet("background-image: url(:/images/3.png); border-radius:10px; border:0px;");
	QCheckBox *checkBox = new QCheckBox(this);
    checkBox->setGeometry(QRect(40, 490, 190, 25));
    checkBox->setText(QApplication::translate("activitynew", "\346\216\250\350\215\220\347\273\231\346\210\221\347\232\204\347\262\211\344\270\235", 0, QApplication::UnicodeUTF8));
    checkBox->setStyleSheet(" font:bold 17px; color:black; selection-background-color: transparent; selection-color:black; ");
	//back = new QAction(tr("Back"), this);
	//back->setSoftKeyRole(QAction::NegativeSoftKey);
	//connect(back, SIGNAL(triggered()), this, SLOT(backtobloghomepage()));
	//addAction(back);	
	QPushButton *pushButtonRight=new QPushButton(this);
	pushButtonRight->setGeometry(QRect(0, 580, 180, 60));	
	pushButtonRight->setStyleSheet("border-image:url(:/images/56.png);border:0px;");
	QPushButton *pushButtonLeft=new QPushButton(this);
	pushButtonLeft->setGeometry(QRect(180, 580, 180, 60));	
	pushButtonLeft->setStyleSheet("border-image:url(:/images/57.png);border:0px;");
	connect(pushButtonLeft, SIGNAL(clicked()), this, SLOT(backtobloghomepage()));
}

activitynew::~activitynew()
{

}
void activitynew::backtobloghomepage()
{
    bloghomepage *w=new bloghomepage(2,0);
    w->showFullScreen(); 
    this->~activitynew();
}
